//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package org.yaukie.base.core.entity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

public class SftpBean {
    private @NotBlank(
            message = "userNamecan not be null"
    ) String userName;
    private String secretKey;
    private @NotBlank(
            message = "host not be null"
    ) String host;
    private @NotNull(
            message = "port not be null"
    ) int port;
    private String privateKey;
    private @NotBlank(
            message = "sftpPath not be null"
    ) String sftpPath;
    private String sftpBackupPath;

    public SftpBean() {
    }

    public SftpBean(String userName, String secretKey, String host, int port, String privateKey) {
        this.userName = userName;
        this.secretKey = secretKey;
        this.host = host;
        this.port = port;
        this.privateKey = privateKey;
    }

    public String getUserName() {
        return this.userName;
    }

    public String getSecretKey() {
        return this.secretKey;
    }

    public String getHost() {
        return this.host;
    }

    public int getPort() {
        return this.port;
    }

    public String getPrivateKey() {
        return this.privateKey;
    }

    public String getSftpPath() {
        return this.sftpPath;
    }

    public String getSftpBackupPath() {
        return this.sftpBackupPath;
    }

    public void setUserName(final String userName) {
        this.userName = userName;
    }

    public void setSecretKey(final String secretKey) {
        this.secretKey = secretKey;
    }

    public void setHost(final String host) {
        this.host = host;
    }

    public void setPort(final int port) {
        this.port = port;
    }

    public void setPrivateKey(final String privateKey) {
        this.privateKey = privateKey;
    }

    public void setSftpPath(final String sftpPath) {
        this.sftpPath = sftpPath;
    }

    public void setSftpBackupPath(final String sftpBackupPath) {
        this.sftpBackupPath = sftpBackupPath;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof SftpBean)) {
            return false;
        } else {
            SftpBean other = (SftpBean)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label87: {
                    Object this$userName = this.getUserName();
                    Object other$userName = other.getUserName();
                    if (this$userName == null) {
                        if (other$userName == null) {
                            break label87;
                        }
                    } else if (this$userName.equals(other$userName)) {
                        break label87;
                    }

                    return false;
                }

                Object this$secretKey = this.getSecretKey();
                Object other$secretKey = other.getSecretKey();
                if (this$secretKey == null) {
                    if (other$secretKey != null) {
                        return false;
                    }
                } else if (!this$secretKey.equals(other$secretKey)) {
                    return false;
                }

                label73: {
                    Object this$host = this.getHost();
                    Object other$host = other.getHost();
                    if (this$host == null) {
                        if (other$host == null) {
                            break label73;
                        }
                    } else if (this$host.equals(other$host)) {
                        break label73;
                    }

                    return false;
                }

                if (this.getPort() != other.getPort()) {
                    return false;
                } else {
                    label65: {
                        Object this$privateKey = this.getPrivateKey();
                        Object other$privateKey = other.getPrivateKey();
                        if (this$privateKey == null) {
                            if (other$privateKey == null) {
                                break label65;
                            }
                        } else if (this$privateKey.equals(other$privateKey)) {
                            break label65;
                        }

                        return false;
                    }

                    Object this$sftpPath = this.getSftpPath();
                    Object other$sftpPath = other.getSftpPath();
                    if (this$sftpPath == null) {
                        if (other$sftpPath != null) {
                            return false;
                        }
                    } else if (!this$sftpPath.equals(other$sftpPath)) {
                        return false;
                    }

                    Object this$sftpBackupPath = this.getSftpBackupPath();
                    Object other$sftpBackupPath = other.getSftpBackupPath();
                    if (this$sftpBackupPath == null) {
                        if (other$sftpBackupPath != null) {
                            return false;
                        }
                    } else if (!this$sftpBackupPath.equals(other$sftpBackupPath)) {
                        return false;
                    }

                    return true;
                }
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof SftpBean;
    }

    public int hashCode() {
        int result = 1;
        Object $userName = this.getUserName();
        result = result * 59 + ($userName == null ? 43 : $userName.hashCode());
        Object $secretKey = this.getSecretKey();
        result = result * 59 + ($secretKey == null ? 43 : $secretKey.hashCode());
        Object $host = this.getHost();
        result = result * 59 + ($host == null ? 43 : $host.hashCode());
        result = result * 59 + this.getPort();
        Object $privateKey = this.getPrivateKey();
        result = result * 59 + ($privateKey == null ? 43 : $privateKey.hashCode());
        Object $sftpPath = this.getSftpPath();
        result = result * 59 + ($sftpPath == null ? 43 : $sftpPath.hashCode());
        Object $sftpBackupPath = this.getSftpBackupPath();
        result = result * 59 + ($sftpBackupPath == null ? 43 : $sftpBackupPath.hashCode());
        return result;
    }

    public String toString() {
        return "SftpBean(userName=" + this.getUserName() + ", secretKey=" + this.getSecretKey() + ", host=" + this.getHost() + ", port=" + this.getPort() + ", privateKey=" + this.getPrivateKey() + ", sftpPath=" + this.getSftpPath() + ", sftpBackupPath=" + this.getSftpBackupPath() + ")";
    }
}
